<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<form action="#" role="form" >
    <div class="form-group has-warning">
        <lable>用户名</lable>
        <input type="text" class="form-control">
    </div>
    <div class="form-group has-error">
        <lable>用户名</lable>
        <input type="text" class="form-control">
    </div>
    <div class="form-group has-success has-feedback">
        <lable>用户名</lable>
        <input type="text" class="form-control">
        <span class="glyphicon glyphicon-ok form-control-feedback"></span>
    </div>
</form>
</body>
</html>